home *** CD-ROM | disk | FTP | other *** search
- Targs serves as a foundation for building interactive programs. It interprets
- the user's input, evaluates expressions, and executes the desired subroutines.
- The program, argtest, demonstrates both the capabilities and the implementation
- of targs.
-
- The other directory contains 2 programs: argtest and parse. To make them type
- either "make argtest" or "make parse". The parser is implemented in the argtest
- program under the "Plot" command.
-
- The main purpose of argtest is to show off "targs" and how it is a replacement
- for "aargs". Check out argtest.c to see how to use it in your own programs.
-
- The parser program shows how one can use "expr_tof" to convert mathematical
- expressions to a double number. It is passed a string containing functions
- and variables 'a' through 'z' . These variables are assigned by either passing
- it a string like "a=cos(3.222)" or by changing regs['a'-'a'] when you include
- a "extern double regs[26]" in your program. When the parser is passed multiple
- expressions it returns the value of the last one. For example, when it is passed
- "a=2+3; a*a", it will return a double valued at "25.000".
-
- Further documentation
-
- exprtof.doc summary of commands that work in expr_tof.
- article.doc newsletter article.
- usingtargs.doc how to implement ones own procedures.
-
- Please send any suggestions or report any bugs to todd@poincare.geom.umn.edu
-
- This package was written by Todd R. Kaplan and Rob Almgren.